<script setup lang='ts'>
import { ref } from 'vue';
import ChildOne from './components/ChildOne.vue';
const myColor = ref('漂漂亮亮')
const size = ref('小小')
const updateMoney = (num: string) => {
  myColor.value = num
}
</script>

<template>
  <div>
    父组件
    <ChildOne :updateMoney="updateMoney" :color="myColor"></ChildOne>
    <ChildOne :updateMoney="updateMoney" :color="myColor" :size="size" @change-color="myColor = $event"
      @change-size="size = $event"></ChildOne>
  </div>
</template>

<style scoped></style>